import request from '@/utils/request'

// 查询重大事故隐患判定列表
export function listJudge(query) {
  return request({
    url: '/workSafetyStandardization/judge/list',
    method: 'get',
    params: query
  })
}

// 查询重大事故隐患判定详细
export function getJudge(accidentJudgeId) {
  return request({
    url: '/workSafetyStandardization/judge/' + accidentJudgeId,
    method: 'get'
  })
}

// 新增重大事故隐患判定
export function addJudge(data) {
  return request({
    url: '/workSafetyStandardization/judge',
    method: 'post',
    data: data
  })
}

// 修改重大事故隐患判定
export function updateJudge(data) {
  return request({
    url: '/workSafetyStandardization/judge',
    method: 'put',
    data: data
  })
}

// 删除重大事故隐患判定
export function delJudge(accidentJudgeId) {
  return request({
    url: '/workSafetyStandardization/judge/' + accidentJudgeId,
    method: 'delete'
  })
}
